🔄 Reading List × AReminders
(
33
actions, 37 KB)
0 DataJar > GetValueIntent »
keyPath
:
My CMS.Safari.Reading List
1 Repeat with Each in
[0 Value]
2 Get URLs from
[Repeat Item]
»
3
17
26
3 Get Contents of URL
[2 URLs]
➔ Article
»
4
21
4 Count
Words
in
[3 Article
as Text
]
➔ wordCount
»
6
5 Number
1000
➔ threshold
»
6
7
9
6 Calculate Expression
ceil(max(1,
[4 wordCount]
) /
[5 threshold]
)
»
7
9
7 Calculate Expression
[5 threshold]
* (
[6 Calculation Result]
- 1)
»
8 Format Number
[7 Calculation Result]
to
0
decimal places »
11
9 Calculate Expression
[5 threshold]
*
[6 Calculation Result]
»
10 Format Number
[9 Calculation Result]
to
0
decimal places »
11 Text
➔ parentReminderTitle
»
13
15
26
👉
[8 Formatted Number]
–
[10 Formatted Number]
words
12 Text
➔ ◻️ Essay
»
13
15
26
29
◻️ Essay
13 Find Reminders »
ContentItemLimitEnabled
:
true
ContentItemLimitNumber
:
1
ContentItemFilter
:
• All the following are true List is
[12 ◻️ Essay]
Title is
[11 parentReminderTitle]
Is Completed Is Flagged
14 If
[13 Reminders]
does not have any value
15 Add New Reminder
[11 parentReminderTitle]
to Reminders with No Alert
CalendarDescriptor
:
[12 ◻️ Essay]
16 End If »
24
30
17 Actions > GetTitleOfURLIntent »
18
19
url
:
[2 URLs]
18 If
[17 Title of URL]
has any value
19 Get Text from
[17 Title of URL]
20 Otherwise
21 Get Text from
[3 Article]
22 End If »
23 Run Shortcut
Get Plain Text from Markdown
➔ reminderTitle
»
24
26
29
Input
:
[22 If Result]
Workflow
:
{ "workflowIdentifier": "DAB244B1-0299-4B66-A0F1-726F17ED5A84", "workflowName": "Get Plain Text from Markdown", "isSelf": false }
24 Find Reminders »
ContentItemLimitEnabled
:
true
ContentItemLimitNumber
:
1
ContentItemFilter
:
• All the following are true Title is
[23 reminderTitle]
Is Completed
25 If
[24 Reminders]
does not have any value
26 Dictionary »
{ "reminderList": "
[12 ◻️ Essay]
", "parentReminderTitle": "
[11 parentReminderTitle]
", "brainFoodTitle": "
[23 reminderTitle]
", "brainFoodURL": "
[2 URLs]
" }
27 Dictionary »
{ "shortcutName": "😉 Enjoy Quality Brain Food", "shortcutInput": "
[26 Dictionary]
" }
28 Run Shortcut
Build Run Shortcut URL
»
Input
:
[27 Dictionary]
Workflow
:
{ "workflowIdentifier": "A4D0829E-EC6C-4E7E-8088-6EBD82EA8061", "workflowName": "Build Run Shortcut URL", "isSelf": false }
29 Add New Reminder
[23 reminderTitle]
to Reminders with No Alert »
CalendarItemNotes
:
CalendarDescriptor
:
[12 ◻️ Essay]
URL
:
[28 Shortcut Result]
30
Set
Parent Reminder
of Reminder
[29 New Reminder]
ReminderContentItemParentReminder
:
[16 parentReminder]
31 End If ▵
25
32 End Repeat with Each ▵
1